package com.lry.basic.spring.aop.core;

import com.lry.basic.spring.aop.face.AbstractPointcutAdvisor;
import com.lry.basic.spring.aop.face.Advisor;
import com.lry.basic.spring.aop.face.Pointcut;

/**
 * @author:刘仁有
 * @desc:
 * @email:953506233@qq.com
 * @data:2019/11/4
 */
public class AspectJPointcutAdvisor extends AbstractPointcutAdvisor {

    private AspectJExpressionPointcut pointcut;

    public AspectJPointcutAdvisor(String adviceBeanName,String expression){
        super(adviceBeanName,expression);
        this.pointcut = new AspectJExpressionPointcut(expression);
    }

    @Override
    public AspectJExpressionPointcut getPointcut() {
        return this.pointcut;
    }
}
